package com.example.demo.mapper;

import com.example.demo.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    //定义一个查询语句
    //这里查询语句的使用规则推荐去系统学一下，如果拿来即用就看教程
    @Select("select * from \"Login\" where account = #{account}")
    User selectUserByAccount(@Param("account") String account);
}
